﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FactoryMethod
{
    class Program
    {
        static void Main(string[] args)
        {
            OperationFactory factory = new AddFactory();
            Operation operation = factory.CreateionOperation();
            operation.NumberA = 4;
            operation.NumberB = 5;
            Console.WriteLine(operation.getResult());
        }
    }
}
